package com.zhuyi.broadcast.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhuyi.broadcast.pojo.domain.AuditTask;
import com.zhuyi.common.core.domain.AjaxResult;

import java.util.List;


/**
 * <p>
 *  审核类
 * </p>
 *
 * @author dyj
 * @since 2024-12-24
 */
public interface AuditService extends IService<AuditTask>  {

    /**
     * 提交审核任务
     * @param auditTask
     * @return
     */
    AjaxResult submitAuditTask(AuditTask auditTask);

    /**
     * 审核任务
     * @param taskId
     * @param auditorId
     * @param result
     * @param comments
     * @return
     */
    AjaxResult auditTask(Long taskId, Long auditorId, String result, String comments);

    /**
     * 获取待审核任务
     * @return
     */
    List<AuditTask> getPendingTasks();

    /**
     * 创建审核任务（公共方法）
     * @param taskObject
     * @param taskType
     */
    public void createAndSubmitAuditTask(Object taskObject, String taskType);

    /**
     * 获取所有审核任务
     * @return
     */
    List<AuditTask> list(AuditTask auditTask);
}
